﻿using UnityEngine;
using System.Collections;

public class SpotlightController : MonoBehaviour {
		public float EndIntensity;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		float currentVal = this.gameObject.light.intensity;
		this.gameObject.light.intensity = Mathf.Lerp(currentVal, EndIntensity, Time.time);
		//this.gameObject.light.intensity = Mathf.Lerp(-0,3,Time.deltaTime);
	}
}
